package com.choosefine.it.company.dao;

import java.util.Map;

import com.choosefine.it.company.model.CompanyManagerCollection;
import com.github.pagehelper.Page;

public interface CompanyManagerCollectionMapper {
      /**
       * 根据用户code查询建筑公司收藏的承包人信息
       * @author chenjian
       */
	  Page<CompanyManagerCollection> selectByUserCode(String userCode);
	  /**
	   * 取消收藏
	   * @author chenjian
	   */
	  int cancleManagerCollectionById(CompanyManagerCollection companyManagerCollection);
	  /**
	   * 收藏项目承包人信息
	   * @author chenjian
	   */
	  int saveCompanyManagerCollection(CompanyManagerCollection companyManagerCollection);
	  
	  /**
	   * 根据发布id及用户code查询收藏信息
	   * @author chenjian
	   */
	  CompanyManagerCollection findCompanyManagerCollectionByCodeAndId(Map<String, Object> params);
	  /**
	   * 建筑公司重新收藏，更新收藏信息
	   * @author chenjian
	   */ 
	  int updateCompanyManagerCollection(CompanyManagerCollection companyManagerCollection);
}